package com.itheima.mall.mapper.sms;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.mall.pojo.sms.SmsFlashPromotionProductRelation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.data.repository.query.Param;
import org.springframework.jmx.export.annotation.ManagedAttribute;

import java.util.List;

@Mapper
public interface SmsFlashPromotionProductRelationMapper extends
        BaseMapper<SmsFlashPromotionProductRelation> {
    @Select("select count(flash_promotion_count) from mall.sms_flash_promotion_product_relation where flash_promotion_id=#{flashPromotionId}")
    int count(Integer flashPromotionId);
}
